package Thread;

/**
 * Created with IntelliJ IDEA.
 * Description: wait()方法测试
 */
public class ThreadDemo20 {
    public static void main(String[] args) throws InterruptedException {
        Object object = new Object();
        synchronized (object) {
            System.out.println("wait前");
            object.wait();
            System.out.println("wait后");
        }
    }
}
